package com.it.selfAfter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.it.selfAfter.dto.ProductBaseDTO;
import com.it.selfAfter.dto.ProductionDTO;
import com.it.selfAfter.entity.Production;
import com.it.selfAfter.entity.ProductionType;
import com.it.selfAfter.utils.Result;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ProductService extends IService<Production> {
    
   
    
    List<ProductionType> getProInfo ();
    
    Production saveProduct (String name, String productionType, String result, String address, String description, String phone, String userId, String createName, MultipartFile[] imgs);
    
    Result<?> queryProductList (Map<String, String> query, Integer size, Integer page);

    ProductionDTO getProductInfoById(Long id,String userId);

    ProductBaseDTO getProductBaseInfo();

    String updateCollectById(String proId,String phone,String userId);

    String saveCollectById(String proId,String phone,String userId);

    ProductionDTO echoProductInfoById(String proId, String phone, String userId);

    Production updateProduct(String proId, String name, String productionType, String result, String address,
                             String description, String deleteImgs, String noDeleteImg, MultipartFile[] imgs);
}
